package com.pw.lit.service.impl;

import com.pw.lit.bean.SearchHistory;
import com.pw.lit.bean.SearchHistoryExample;
import com.pw.lit.mapper.SearchHistoryMapper;
import com.pw.lit.service.SearchHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("searchHistoryService")
public class SearchHistoryServiceImpl implements SearchHistoryService {

    @Autowired
    private SearchHistoryMapper searchHistoryMapper;
    @Override
    public int countByExample(SearchHistoryExample example) {
        return searchHistoryMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SearchHistoryExample example) {
        return searchHistoryMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer sid) {
        return searchHistoryMapper.deleteByPrimaryKey(sid);
    }

    @Override
    public int insert(SearchHistory record) {
        return searchHistoryMapper.insert(record);
    }

    @Override
    public int insertSelective(SearchHistory record) {
        return searchHistoryMapper.insertSelective(record);
    }

    @Override
    public List<SearchHistory> selectByExample(SearchHistoryExample example) {
        return searchHistoryMapper.selectByExample(example);
    }

    @Override
    public SearchHistory selectByPrimaryKey(Integer sid) {
        return searchHistoryMapper.selectByPrimaryKey(sid);
    }

    @Override
    public int updateByExampleSelective(SearchHistory record, SearchHistoryExample example) {
        return searchHistoryMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(SearchHistory record, SearchHistoryExample example) {
        return searchHistoryMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(SearchHistory record) {
        return searchHistoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SearchHistory record) {
        return searchHistoryMapper.updateByPrimaryKey(record);
    }
}